package com.book.remote.impl;

import com.book.dto.ImgDto;
import com.book.dto.UserDto;
import com.book.remote.ImageApi;
import com.book.service.ImgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author 李锦程
 * @Date 2021/4/12 2:27 下午
 * @Package com.book.service.impl
 * @Version 1.0
 */
@Component
public class ImageApiImpl implements ImageApi {
    @Autowired
    private ImgService imgService;

    @Override
    public void saveImg(ImgDto imgDto,UserDto userDto,MultipartFile file) {
        imgService.saveImg(imgDto,userDto,file);
    }
}
